package org.dingfugui.triple.demo.producer;

import org.dingfugui.triple.demo.api.FooService;
import org.dingfugui.triple.demo.api.User;

import java.util.concurrent.atomic.AtomicInteger;

/**
 * @author fugui.ding at 2015/6/17
 */
public class FooServiceImpl implements FooService {

    private AtomicInteger seq = new AtomicInteger();

    @Override
    public User foo(String name) {
        return new User(seq.getAndIncrement(), name);
    }

}
